<template>
  <div class="login">
    <div class="return" @click="gohome"><button>返回</button></div>
    <div class="mode" @click="changes"><button>切换模式</button></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      light: false,
    };
  },
  methods: {
    gohome() {
      this.$router.push({ name: "home" });
    },
    changes() {
      this.light = !this.light;
      this.$emit("changes", this.light);
    },
  },
};
</script>

<style lang="less" scoped>
</style>

